<?php
if(User::getType() != 'gast')
{
	if(User::getType() == 'klassetv')
	{
		$titel = 'Beheerder KlasseTV';
	}
	else
	{
		$klas = mysql_fetch_assoc(mysql_query("SELECT k.id, k.naam, s.naam AS schoolnaam FROM `klassen` AS k, `scholen` AS s WHERE k.id='" . User::getClassID() . "' AND k.school_id = s.id"));
		$titel = $klas['naam'] . ', ' . $klas['schoolnaam'];
	}
?>
<ul id="menu2">
	<li><?php echo $titel?></li>
	<li class="secure"><a href="logout">Uitloggen</a></li>
	<?php if(User::getType() == 'docent'){ ?>
    <li class="edit"><a href="profiel">Profiel wijzigen</a></li>
    <?php } ?>
</ul>
<?php
}
else
{
?>
					<div id="bar">
						<div id="container">
							<!-- Login Starts Here 
							@pearl R.
							-->
							<div id="loginContainer">
								<a href="#" id="loginButton"><span>Login als docent</span><em></em></a>
								
								<div style="clear:both"></div>
								<div id="loginBox">             
									<form id="loginForm"method="post" action="login/docenten">
										<input type="hidden" value="login" name="actie" />
										<fieldset id="body">
											<fieldset><label for="username">Gebruikersnaam  </label>
												<input name="gebruikersnaam" type="text" class="textfield" id="login" />
											</fieldset>
											<fieldset><label for="password">Password</label>
												
												<input name="wachtwoord" type="password" class="textfield" id="password" />
											</fieldset>
												<input type="submit" name="Submit" class="submit" value="Log in" />
												<label for="checkbox"><input name="klassetv" value="admin" type="checkbox" id="checkbox" style="margin-right: 5px" />login als KlasseTV beheer</label>
										</fieldset>
										<!-- <span><a href="#"> 2012 GetConnected !</a></span> -->
									</form>
								</div>
							</div>
							<!-- Login Ends Here -->
						</div>
					</div> 
<?php
}